<table class="table">
  <thead>
    <th class="first"><%= sort_link @search, :presentation, "#{t 'helpers.label.amounttype.presentation'}" %></th>
    <th><%= sort_link @search, :name, "#{t 'helpers.label.amounttype.name'}" %></th>
    <th class="last"></th>
  </thead>
  <tfoot>
    <th><%= button_to_new "Vytvořit nový typ množství", new_admin_amount_type_path if permitted_to? :create, :admin_amount_types %></th>
    <th colspan="2"><%= paginate amount_types %></th>
  </tfoot>
  <tbody>
    <% unless amount_types.blank? %>
      <%= render :partial => "amount_type", :collection => amount_types %>
    <% else %>
    <tr>
      <th colspan="10">Nebyly nalezeny žádné typy množství.</th>
    </tr>
    <% end %>
  </tbody>
</table>